package com.ScoresSystem.service;

import com.ScoresSystem.pojo.Score;

import java.util.List;

public interface ScoreService {
    List<Score> getAllScore(String name, int pageIndex, Integer pageSize);

    int getCount(String name);

    Score findScoreByStudentNoAndSubjectId(Integer studentNo, Integer subjectId);

    int addScore(Score score);

    int updateScore(Score score);

    int deleteScore(Integer id);

    List<Score> getScoreAccount();

    List<Score> getMyScore(String studentNo, int pageIndex, Integer pageSize);

    int getMyScoreCount(String studentNo);

    List<Score> getMyScoreAccount(String studentNo);
}
